#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QString style="";
    style+="#pushButton:hover{background-color:blue;}";//鼠标放在按钮上为蓝色
    style+="#pushButton:pressed{background-color:red;}";//按下为红色
    this->setStyleSheet(style);

}

Widget::~Widget()
{
    delete ui;
}

